package net.sh.dpinfrastructure.db;


/**
 * 
 * mongo写操作结果
 * 
 * @version 1.0
 * @since JDK1.7
 * @author shaohui
 * @company 上海朝阳永续信息技术有限公司
 * @copyright (c) 2016 SunTime Co'Ltd Inc. All rights reserved.
 * @date 2016年5月11日 下午1:51:55
 */
public class DPWriteResult {
    
    /**
     * 匹配条数
     */
    private long matchedCount;

    /**
     * 实际影响条数（删除，更新）
     */
    private long effectedCount;
    
    /**
     * 写操作类型
     */
    private DPWriteResultType writeType;

    
    public long getMatchedCount() {
        return matchedCount;
    }

    
    public void setMatchedCount(long matchedCount) {
        this.matchedCount = matchedCount;
    }

    
    public long getEffectedCount() {
        return effectedCount;
    }

    
    public void setEffectedCount(long effectedCount) {
        this.effectedCount = effectedCount;
    }

    
    public DPWriteResultType getWriteType() {
        return writeType;
    }

    
    public void setWriteType(DPWriteResultType writeType) {
        this.writeType = writeType;
    }
}
